#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ftp.h"

int main(int argc, char **argv)
{
    if(argc!=4)
    {
        goto _help;
    }

    if(strcmp("get", argv[1])==0)
        return ftp_get(argv[2], argv[3]);
    else if(strcmp("put", argv[1])==0)
        return ftp_put(argv[2],argv[3]);

_help:
    printf("ftp get|get url file\r\n");
    return 1;
}
